/**
* Appcelerator Titanium Platform
* Copyright (c) 2009-2011 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
**/
// Code is stripped-down version of Tweetanium, to expose new structure paradigm

(function(){
	S.ui.createView = function(view){
		
		if (view != "about") return null;
				
		// Create new view
		var thisView = Ti.UI.createView(S.combine($$.contentView));

		// Top padding workaround
		var topPadding = Titanium.UI.createLabel(S.combine($$.topPadding));
		thisView.add(topPadding);
		
		// Adding an image
		var imgView = Ti.UI.createImageView({image:'/images/appicon.png', height:50, width:50});
		thisView.add(imgView);

		// Adding the content to the label
		var lblContent = Titanium.UI.createLabel(S.combine({text: S.ui.content[0][1]['html']},$$.aboutContentLabel));
		thisView.add(lblContent);
		
				
		//var view = Ti.UI.createWebView(S.combine({url:'screens/about.html'},$$.contentView));
		
		/*var aboutCandidateText = Ti.UI.createLabel({
			text:L('about_candidate')
		});*/

		
		// Bottom padding workaround
		var bottomPadding = Titanium.UI.createLabel(S.combine($$.bottomPadding));
		thisView.add(bottomPadding);
				
		return thisView;
	};
})();